package com.platform.coreentity.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Objects;

/**
 * describe:用户表
 *
 * @author rainly
 * @date 2019/07/23
 * @time 16:35
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "sys_user", schema = "platform")
public class SysUserEntity {

    @Id
    @Column(name = "userid", nullable = false, length = 50)
    private String userid;

    /**
     * 用户名称
     */
    @Column(name = "username", nullable = false, length = 50,columnDefinition = "varchar(50) COMMENT '用户名称'")
    private String username;
}
